<include file="Inc/_meta" />
<title>{$page_title}</title>
</head>
<body>
<div class="page-container">

        <!-- Page Head -->
        <h2>{$page_title}用户信息</h2>
        <div class="content-box">

            <form action="{:U('Admin/admin/update',array('id'=>$user_list['id']))}" method="post">
                <table>
                    <tr><td>用户名</td><td>
                        <input type="text" name="username" value="{$user_list['username']}"
                        <if condition="$user_list['username'] neq '' ">  readonly </if>
                        />
                    </td></tr>
                    <tr><td>密码</td><td><input type="password" name="password"
                    <if condition="$user_list['password'] neq '' "> value=""<else /> value="123456" </if>/>不改请留空</td></tr>
                    <tr><td>角色</td><td>
                        <select name="role">
                            <option value="1" <if condition="$user_list['role'] eq 1 "> selected='selected'</if>>学校管理员</option>
                            <option value="2" <if condition="$user_list['role'] eq 2 "> selected='selected'</if>>学籍管理员</option>
                            <option value="3" <if condition="$user_list['role'] eq 3 "> selected='selected'</if>>营养餐管理员</option>
                        </select>
                    </td></tr>
                     <tr><td>学校</td><td>
                         <select name="school_id">
                             <volist name="school_class_array" id="class">
                                <option value="{$class['id']}" <if condition="$class['id'] eq $user_list['school_id'] "> selected='selected'</if>>{$class['name']}</option>
                             </volist>
                         </select>
                     </td></tr>
                    <tr><td cols="5"></td><td><input type="submit" name="update" value="提交"/></td></tr>
                </table>
            </form>
        </div>
    <include file="Inc/_footer" />